package com.lxs.mall.ware.feign;

import com.lxs.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("mall-product")
public interface ProductFeignService {
    /**
     * 当然我们可以通过网关来调用服务，这里直接调服务
     * @param skuId
     * @return
     */
    @RequestMapping("product/skuinfo//info/{skuId}")
    public R info(@PathVariable("skuId") Long skuId);
}
